package com.ykg.pojo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("单船作业通知单")
public class NoticeLetter {
    private String noticeId;
    private Long shipId;
    private String listId;
    private String receiver;
    private Date date;
    private Long ownerId;
    private int state;
    private String remark;

    public NoticeLetter(String noticeId, Long shipId, String listId, Date date, Long ownerId, int state) {
        this.noticeId = noticeId;
        this.shipId = shipId;
        this.listId = listId;
        this.date = new Date();
        this.ownerId = ownerId;
        this.state = state;
    }
}
